package com.cqust.icc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 张成
 * @version 1.0
 * @date 2022/4/7 15:13
 */
@Component
public class AccountDao {

    @Autowired
    private AccountService accountService;

    public void Transfer(Account out,Account in,String str) {
        accountService.Transfer(out,in,str);
    }

    public void addAccount(Account account) {
        accountService.addAccount(account);
    }

    public void deleteAccountById(int i) {
        accountService.deleteAccountById(i);
    }

    public void updateAccount(Account account) {
        accountService.updateAccount(account);
    }

    public List<Account> selectAllAccountList() {
       return accountService.selectAllAccountList();

    }

    public void withdrawMoney(Account wdm) {
         accountService.withdrawMoney(wdm);
    }
}
